<header>
	<div class="nav-w">
    	<section class="nav-s"><a href="javascript:history.back();"><nav>返回</nav></a></section>
    	<section class="nav-c"><span>列表页</span></section>
		<section class="nav-e"><{if $cat}><a class="list" href="javascript:void(0)"><nav>分类</nav></a><{/if}></section>
    </div>
</header>
<script src="<{$config.weburl}>/script/jquery-1.4.4.min.js" type="text/javascript"></script>
<link href="<{$config.weburl}>/templates/wap/css/list.css" rel="stylesheet" type="text/css" />
<section class="filter clearfix">
	<ul class="clearfix">
    	<{assign var=s value=$smarty.get.orderby}>
        <li <{if !$s}>class="current"<{/if}>><a href="<{$config.weburl}>/?<{$url|replace:"&orderby=$s":""}>"><span>默认</span></a></li>
        <li <{if $s==1}>class="current"<{/if}>><a href="<{$config.weburl}>/?<{$url|replace:"&orderby=$s":""}>&orderby=1"><span>销量</span></a></li>
        <li <{if $s==2}>class="current"<{/if}>><a href="<{$config.weburl}>/?<{$url|replace:"&orderby=$s":""}>&orderby=2"><span>人气</span></a></li>
        <li <{if $s==5}>class="current"<{/if}>><a href="<{$config.weburl}>/?<{$url|replace:"&orderby=$s":""}>&orderby=5"><span>总价</span></a></li>
    </ul>
</section>
<section class="itemSearchList">
<{if $info.list}>
<div class="itemSearchResult clearfix">
    <{foreach item=list key=num from=$info.list}>
    <dl>
        <dt><a class="p-img" href="<{$config.weburl}>/?m=product&s=detail&id=<{$list.id}>">  <img height="80" width="80" alt="<{$list.pname}>" src="<{$list.pic}>_60X60.jpg"></a> </dt>
        <dd>
            <p class="p-name"><a href="<{$config.weburl}>/?m=product&s=detail&id=<{$list.id}>"><{$list.pname}></a></p>
            <p class="p-price"><strong><{$config.money}><{$list.price}></strong></p>
        </dd>
    </dl>
    <{/foreach}>
    <{$info.page}>
</div>
<{else}>
<div class="itemsNull">
    <h3>没有搜索到相关宝贝</h3>
</div>
<{/if}>
<div class="leftcate hidden">
    <{if $cat }>
    <h2>分类 <a class="remove" href="javascript:void(0)"><nav>取消</nav></a></h2>
    <ul>
        <{foreach item=list from=$cat}>
        <li><a <{if $smarty.get.id==$list.catid}>class="current"<{/if}> href="<{$config.weburl}>/?m=product&s=list&id=<{$list.catid}>"><{$list.cat}></a></li>
        <{/foreach}>
    </ul>
    <{/if}>
</div>
</section>
<script>
$(".list").click(function(){
	window.scroll(0,0);
 	$('.leftcate').show();
	$('.itemSearchResult').hide();
	$('.main').append('<div id="leftmask"></div>')
	$('#leftmask')[0].style.height =$(".main").height()+20;
});
$('.remove').click(function(){
 	$('.leftcate').hide();
 	$('.itemSearchResult').show();
	$('#leftmask').remove();
});
</script>


